package com.ecoolex.discount.sales.core.mapper;

import com.ecoolex.discount.sales.entity.DiscountProductGiftCard;
import com.ecoolex.discount.sales.entity.DiscountProductGiftCardExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DiscountProductGiftCardMapper {
    long countByExample(DiscountProductGiftCardExample example);

    int deleteByExample(DiscountProductGiftCardExample example);

    int deleteByPrimaryKey(Integer productId);

    int insert(DiscountProductGiftCard record);

    int insertSelective(@Param("record") DiscountProductGiftCard record, @Param("selective") DiscountProductGiftCard.Column ... selective);

    DiscountProductGiftCard selectOneByExample(DiscountProductGiftCardExample example);

    List<DiscountProductGiftCard> selectByExample(DiscountProductGiftCardExample example);

    DiscountProductGiftCard selectByPrimaryKey(Integer productId);

    DiscountProductGiftCard selectByPrimaryKeyWithLogicalDelete(@Param("productId") Integer productId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DiscountProductGiftCard record, @Param("example") DiscountProductGiftCardExample example, @Param("selective") DiscountProductGiftCard.Column ... selective);

    int updateByExample(@Param("record") DiscountProductGiftCard record, @Param("example") DiscountProductGiftCardExample example);

    int updateByPrimaryKeySelective(@Param("record") DiscountProductGiftCard record, @Param("selective") DiscountProductGiftCard.Column ... selective);

    int updateByPrimaryKey(DiscountProductGiftCard record);

    int batchInsert(@Param("list") List<DiscountProductGiftCard> list);

    int batchInsertSelective(@Param("list") List<DiscountProductGiftCard> list, @Param("selective") DiscountProductGiftCard.Column ... selective);

    int logicalDeleteByExample(@Param("example") DiscountProductGiftCardExample example);

    int logicalDeleteByPrimaryKey(Integer productId);
}